php forum
php mysql forum
php mysql smarty
 
Topic Options
#243354 - 04/20/03 03:13 PM [6.x/any version] - Subscriptions without a Cron Task
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
Mod Name / Version - Subscriptions without a Cron Task 0.9 beta release <br />Description - Ever wanted to run subscriptions, but could never figure out how to run a cron task? Or does your server not allow them? This script will run the ubbt subscriptions.php file in the /cron/php directory of your ubbt install once per day (as long as you have at least one visitor per day) so that subscribers can receive emails. <br />Working Under - UBB.Threads 6.2, but will work with any version to my knowledge. <br />Pre-requisites - Make sure you have your cron/php/ directory still! <br />Files Altered - ubbt.inc.php <br />New File - sub.inc.php <br />Author - Dalar (Rob Porter) <br /> <br />Enjoy!


Attachments
76481-ubbthreads subscriptions without cron v09.txt (47 downloads)

_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#243355 - 04/20/03 06:14 PM Re: [6.x/any version] - Subscriptions without a Cron Task [Re: beatdown]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
<img src="/forum/images/graemlins/cool.gif" alt="" /> - thanks Dalar <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#243356 - 04/27/03 01:08 AM Re: [6.x/any version] - Subscriptions without a Cron Task [Re: beatdown]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
I am having a weird bug occur in this, and had a question for anyone in the know about the date() function.<br /><br />Does it record the server time or the user's system's time or the adjusted server time? It seems to be sending at strange hours, multiple times in a day, and I've tracked it down to occuring when users from very distant timezones visit the site.<br /><br />Would there be any ideas about a workaround to this?
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#243357 - 04/27/03 07:31 AM Re: [6.x/any version] - Subscriptions without a Cron Task [Re: beatdown]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
####################################################################### <br /> // get_date <br /> // ####################################################################### <br /> function get_date() { <br /> <br /> global $config; <br /> $currtime = time(); <br /> $currtime = $currtime+($config['adjusttime']*3600); <br /> return $currtime; <br /> } <br /> <br /> <br /> It is converted from the server time. Threads grabs the server time called time() then it adds the adjust time in the config file shown for your time zone. If your time zone is one hour away from the server your config file has a 1 which in this case if 1 x 3600 seconds or ONE HOUR. The date is stored as a UNIX TIMESTAMP. Thus the need for all seconds. <br /> <br />Have you tried? <br /> <br />$now = $this -> get_date(); <br /> <br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#243358 - 04/27/03 03:26 PM Re: [6.x/any version] - Subscriptions without a Cron Task [Re: beatdown]
Ian_W Offline

Veteran

Registered: 02/22/02
Posts: 2575
Loc: England
Neat idea <img src="/forum/images/graemlins/smile.gif" alt="" /> Thanks.
_________________________
Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Top
#243359 - 04/27/03 09:09 PM Re: [6.x/any version] - Subscriptions without a Cron Task [Re: sf49rminer]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
Cool, thanks.
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#243360 - 04/28/03 12:25 AM Re: [6.x/any version] - Subscriptions without a Cron Task [Re: sf49rminer]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
Wait.. if threads is calling the server time, this problem wouldn't be happening (as is diagnosed). Making the change as proposed would only work for those that have changed their profiles(or even have profiles, as guests wouldn't).<br /><br />So, could there be a different problem with this script that I'm not seeing?
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#243361 - 09/15/03 08:10 PM Re: [6.x/any version] - Subscriptions without a Cron Task [Re: beatdown]
filamballa Offline
Newbie

Registered: 08/28/03
Posts: 24
Installed this hack. How do I know it is working? Sorry not too keen on cron task...

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks